{extend name="public/world"}
{block name="title"}添加菜单{/block}
{block name="style"}{/block}
{block name="container"}
<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
    <div class="layui-card" style="height:325px;padding: 20px 0 0;">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label label-required">菜单名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="menu_name" value="" lay-verify="required" placeholder="请输入菜单名称" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label label-required">父级</label>
                <div class="layui-input-inline">
                    <input type="text" name="pid" value="{$id}" lay-verify="required" placeholder="请输入父级ID" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label label-required">控制器名</label>
                <div class="layui-input-inline">
                    <input type="text" name="controller" value="{$menu.controller}" lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label label-required">层级</label>
                <div class="layui-input-inline">
                    <input type="text" name="type" value="" lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">方法名</label>
                <div class="layui-input-inline">
                    <input type="text" name="action" value="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">图标</label>
                <div class="layui-input-inline">
                    <input type="text" name="icon" value="" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item" lay-filter="is_show">
            <label class="layui-form-label">是否菜单</label>
            <div class="layui-input-block">
                <input type="radio" name="is_show" value="1" title="显示" checked>
                <input type="radio" name="is_show" value="0" title="不显示">
            </div>
        </div>
        <div class="layui-form-item" lay-filter="visable">
            <label class="layui-form-label">是否禁用</label>
            <div class="layui-input-block">
                <input type="radio" name="visable" value="1" title="可用" checked>
                <input type="radio" name="visable" value="0" title="禁用">
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <input type="button" lay-submit lay-filter="LAY-front-submit" id="LAY-front-submit" value="确认">
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script>
    //JavaScript代码区域
    layui.use('form', function() {
        var $ = layui.$,
            form = layui.form;
    });
</script>
{/block}